home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
qbprog.EXE
/
OHM.BAS
< prev
next >
Wrap
BASIC Source File
|
1995-01-02
|
1KB
|
33 lines
100 CLS:SCREEN 0,0,0:KEY OFF:BEEP
110 FOR P=0 TO 50000!:NEXT P:CLS:LOCATE 6,29:COLOR 1,3,2:PRINT " OHM KANUNU "
120 LOCATE 8,18:COLOR 1,2,3:PRINT " Hangi Deºeri hesaplamak ÿstersiniz ? "
130 LOCATE 11,20:COLOR 30,6:PRINT "1":LOCATE 11,26:COLOR 14,6,0:PRINT " DÿRENÇ :[R].....R=V/I "
140 LOCATE 13,20:COLOR 30,3:PRINT "2":LOCATE 13,26:COLOR 14,3,0:PRINT " GERÿLÿM :[V].....V=I*R "
150 LOCATE 15,20:COLOR 30,5:PRINT "3":LOCATE 15,26:COLOR 14,5,0:PRINT " AKIM :[I].....I=V/R "
160 LOCATE 17,20:COLOR 20,7:PRINT "4":LOCATE 17,26:COLOR 20,7,0:PRINT "***** Ç I K I ₧ *****"
170 LOCATE 22,18:COLOR 1,2,3:PRINT " ..........SEÇENEªÿNÿZ NEDÿR.........":LOCATE 22,19:COLOR 31,4:PRINT "< >":COLOR 6,0
180 LOCATE 22,45:A$=INPUT$(1):IF LEN(A$)=0 THEN 180
190 SCREEN 0,0,0:WIDTH 80:COLOR 7,0,0
200 Y=VAL(A$):IF Y<1 OR Y>4 THEN 100
210 SCREEN 0,0,0:WIDTH 80:COLOR 7,0,0
220 Y=VAL(A$):IF Y=1 THEN 260
230 Y=VAL(A$):IF Y=2 THEN 310
240 Y=VAL(A$):IF Y=3 THEN 360
250 Y=VAL(A$):IF Y=4 THEN 410
260 CLS
270 INPUT "Gerilimi giriniz. U= ";U
280 INPUT "Akìmì giriniz I= ";I
290 R=U/I
300 PRINT "R=";R;"Ohm":GOTO 110
310 CLS
320 INPUT "Akìmì giriniz I= ";I
330 INPUT "Direnci giriniz R= ";R
340 U=I*R
350 PRINT "U= ";U;"Volt":GOTO 110
360 CLS
370 INPUT "Gerilimi giriniz U= ";U
380 INPUT "Direnci giriniz R= ";R
390 I=U/R
400 PRINT "I= ";I;"Amper":GOTO 110
410 COLOR 7,0,0:SCREEN 0,0,0:WIDTH 80:KEY ON:CLS:BEEP:END